package com.ua.secure.dictionary.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ua.common.model.DictionaryItem;
import com.ua.secure.dictionary.persistence.DictionaryItemMapper;


@Service
public class DictionaryItemServiceImpl implements DictionaryItemService{

	@Autowired
	DictionaryItemMapper mapper;
	
	@Override
	public List<DictionaryItem> selectPageDictItems(DictionaryItem dictItem) {
		return mapper.selectPageDictItems(dictItem);
	}

	@Override
	public Integer dictItemCount(DictionaryItem dictItem) {
		return mapper.dictItemCount(dictItem);
	}

	@Override
	public DictionaryItem selectDictItemById(String dictItemId) {
		return mapper.selectDictItemById(dictItemId);
	}

	@Override
	public void updateDictItem(DictionaryItem dictItem) {
		mapper.updateDictItem(dictItem);
		
	}

	@Override
	public void saveDictItem(DictionaryItem dictItem) {
		mapper.saveDictItem(dictItem);		
	}

	@Override
	public void deleteDictItem(String dictItemId) {
		mapper.deleteDictItem(dictItemId);				
	}

}
